home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000195_news@newsmaster….columbia.edu _Fri Feb 6 23:08:48 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA08941
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 6 Feb 1998 23:08:48 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA16848
  7.     for kermit.misc@watsun; Fri, 6 Feb 1998 23:08:47 -0500 (EST)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!news-peer.sprintlink.net!news-backup-west.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!209.90.0.8!alpha.sky.net!newshub.cts.com!newshub.nosc.mil!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!jrd
  9. From: jrd@cc.usu.edu (Joe Doupnik)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Divide Overflow with 3.12
  12. Message-ID: <Dk53LJmOV3j1@cc.usu.edu>
  13. Date: 3 Feb 98 11:55:27 MDT
  14. References: <34D40FDC.64AB@uc.edu> <6b6jij$8g$1@trog.dra.hmg.gb>
  15. Organization: Utah State University
  16. Lines: 60
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:8378
  18.  
  19. In article <6b6jij$8g$1@trog.dra.hmg.gb>, "Doug Pickering" <djpickering@dera.gov.uk> writes:
  20. > Charles,
  21. > I had the same problem last year.
  22. > The problem I had was caused by a loop to detect how fast the processor is
  23. > running.  This loop did not correctly handle that the timing loop may
  24. > complete so quickly.  This produced a divide overflow.
  25. > If like me you need to use 3.12 because of the product macro then I suggest
  26. > the following:
  27.  
  28.     Might I ask what specifically requires using MSK 3.12 rather than
  29. later versions?
  30.  
  31. > 1) Get hold of the Kermit 3.12 source
  32. > 2) Get hold of the latest source (I used 3.14)
  33. > 3) Build the 3.12 version.
  34. > 4) Run the 3.12 version with codeview and let it crash
  35. > 5) Determine where it has crashed and replace the relevent code with the
  36. > code from the latest version of Kermit.
  37.  
  38.     Pcwait material in file msxibm.asm, revise like this:
  39.  
  40.     ; new pcwcnt= old pcwcnt * [1193(tics/ms) / (observed tics / loops)]
  41.     mov    cx,8*1193
  42.     mul    cx    
  43.     or    bx,bx        ; zero observed tics?
  44.     jz    pcwtst3        ; z = yes, divide by one
  45.     cmp    dx,bx        ; overflow?
  46.     jb    pcwtst4        ; b = not likely
  47.     mov    ax,pcwcnt
  48.     jmp    short pcwtst3    ; bypass calculation
  49. pcwtst4:div    bx        ; divided by observed tics
  50. pcwtst3:mov    pcwcnt,ax    ; store quotient as new inner loop counter
  51.  
  52.  
  53. > 6) rebuild
  54. > And there you have it.
  55.  
  56.     Not quite. Patches will be invalidated by the change.
  57.     Joe D.
  58.  
  59. > Unfortunately I do not have the environment set up to do this for you any
  60. > more and the version I have has been customised slightly for our needs.  You
  61. > are welcome to try our version, please send me an email if you wish to.
  62. > Doug Pickering
  63. > Comax
  64. > Charles Hart Enzer, M.D. wrote in message <34D40FDC.64AB@uc.edu>...
  65. >>When I  install and run this version of kermit in a pc-computer whose
  66. >>cpu is MMX I get the message:
  67. >>
  68. >> DIVIDE OVERFLOW .
  69. >>|  Charles Hart Enzer, M.D.               Email:  Charles.Enzer@uc.EDU
  70. >>+